package com.zerous.staria.entity;

import com.zerous.framework.*;

public class Partical
{
	public Vector2 position, velocity, accel, direction;
	public Partical(Vector2 p, Vector2 v, Vector2 d)
	{
		position = p;
		velocity = v;
		direction = d;
		accel = new Vector2(0, 0);
	}
	
	public void setAccel(float x, float y)
	{
		accel.set(x, y);
	}
	
	public void physicalUpdate()
	{
		position.add(velocity.add(accel));
	}
}
